<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" th:fragment="pdfBody">
<head>
</head>
<body>
<div align="center" class="pdf-container">
    <a class="media" th:href="${mediaUrl}"></a>
</div>
</body>
<script th:src="@{lib/pdf/jquery.media.js}"></script>
<script type="text/javascript">
    $(function () {
        $('a.media').media({
            width: 1000,
            objIdForHeight: mediaBody
        });
    });
</script>
</html>